﻿using System;

namespace RRRSRoguelikeData
{
	/// <summary>
	/// Object to store tile data.
	/// Inherits <c>ObjectData</c> and implements <c>IClonable</c>.
	/// </summary>
	public class TileData : ObjectData, ICloneable
	{
		public string ImageCharacter;
		public string ForeColor;
		public string BackColor;
		public int X;
		public int Y;
		public bool Walkable;

		public TileData()
		{
			Walkable = true;
		}

		public object Clone()
		{
			var td = new TileData
						{
							Name = Name,
							Description = Description,
							ImageCharacter = ImageCharacter,
							BackColor = BackColor,
							ForeColor = ForeColor,
							X = X,
							Y = Y,
							Walkable = Walkable
						};

			return td;
		}
	}
}
